.class public abstract Llt/farmis/libraries/externalgps/providers/NMEADeviceManager;
.super Ljava/lang/Object;
.source "NMEADeviceManager.kt"


# annotations
.annotation system Ldalvik/annotation/MemberClasses;
    value = {
        Llt/farmis/libraries/externalgps/providers/NMEADeviceManager$OnStatusChangeListener;
    }
.end annotation


# instance fields
.field private volatile lastMessage:Ljava/lang/String;

.field private volatile status:Llt/farmis/libraries/externalgps/providers/Status;

.field private statusChangedListsener:Llt/farmis/libraries/externalgps/providers/NMEADeviceManager$OnStatusChangeListener;


# direct methods
.method public constructor <init>()V
    .locals 1

    .line 9
    invoke-direct {p0}, Ljava/lang/Object;-><init>()V

    .line 19
    sget-object v0, Llt/farmis/libraries/externalgps/providers/Status;->DISCONNECTED:Llt/farmis/libraries/externalgps/providers/Status;

    iput-object v0, p0, Llt/farmis/libraries/externalgps/providers/NMEADeviceManager;->status:Llt/farmis/libraries/externalgps/providers/Status;

    const-string v0, ""

    .line 22
    iput-object v0, p0, Llt/farmis/libraries/externalgps/providers/NMEADeviceManager;->lastMessage:Ljava/lang/String;

    return-void
.end method


# virtual methods
.method protected final changeStatus(Llt/farmis/libraries/externalgps/providers/Status;)V
    .locals 1

    const-string v0, "stat"

    invoke-static {p1, v0}, Lkotlin/jvm/internal/Intrinsics;->checkParameterIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V

    .line 32
    iget-object v0, p0, Llt/farmis/libraries/externalgps/providers/NMEADeviceManager;->status:Llt/farmis/libraries/externalgps/providers/Status;

    .line 33
    iput-object p1, p0, Llt/farmis/libraries/externalgps/providers/NMEADeviceManager;->status:Llt/farmis/libraries/externalgps/providers/Status;

    .line 34
    iget-object p1, p0, Llt/farmis/libraries/externalgps/providers/NMEADeviceManager;->status:Llt/farmis/libraries/externalgps/providers/Status;

    invoke-static {p1, v0}, Lkotlin/jvm/internal/Intrinsics;->areEqual(Ljava/lang/Object;Ljava/lang/Object;)Z

    move-result p1

    xor-int/lit8 p1, p1, 0x1

    if-eqz p1, :cond_0

    .line 35
    invoke-virtual {p0, v0}, Llt/farmis/libraries/externalgps/providers/NMEADeviceManager;->onStatusChanged(Llt/farmis/libraries/externalgps/providers/Status;)V

    :cond_0
    return-void
.end method

.method public abstract connect()Z
.end method

.method public abstract disconnect()V
.end method

.method public getNewSample()Ljava/lang/String;
    .locals 2

    .line 44
    iget-object v0, p0, Llt/farmis/libraries/externalgps/providers/NMEADeviceManager;->lastMessage:Ljava/lang/String;

    const-string v1, ""

    .line 45
    iput-object v1, p0, Llt/farmis/libraries/externalgps/providers/NMEADeviceManager;->lastMessage:Ljava/lang/String;

    return-object v0
.end method

.method public final getStatus()Llt/farmis/libraries/externalgps/providers/Status;
    .locals 1

    .line 19
    iget-object v0, p0, Llt/farmis/libraries/externalgps/providers/NMEADeviceManager;->status:Llt/farmis/libraries/externalgps/providers/Status;

    return-object v0
.end method

.method public final onStatusChanged(Llt/farmis/libraries/externalgps/providers/Status;)V
    .locals 2

    const-string v0, "oldStatus"

    invoke-static {p1, v0}, Lkotlin/jvm/internal/Intrinsics;->checkParameterIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V

    .line 40
    iget-object v0, p0, Llt/farmis/libraries/externalgps/providers/NMEADeviceManager;->statusChangedListsener:Llt/farmis/libraries/externalgps/providers/NMEADeviceManager$OnStatusChangeListener;

    if-eqz v0, :cond_0

    iget-object v1, p0, Llt/farmis/libraries/externalgps/providers/NMEADeviceManager;->status:Llt/farmis/libraries/externalgps/providers/Status;

    invoke-interface {v0, p1, v1}, Llt/farmis/libraries/externalgps/providers/NMEADeviceManager$OnStatusChangeListener;->onStatusChanged(Llt/farmis/libraries/externalgps/providers/Status;Llt/farmis/libraries/externalgps/providers/Status;)V

    :cond_0
    return-void
.end method

.method public final setLastMessage(Ljava/lang/String;)V
    .locals 1

    const-string v0, "<set-?>"

    invoke-static {p1, v0}, Lkotlin/jvm/internal/Intrinsics;->checkParameterIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V

    .line 22
    iput-object p1, p0, Llt/farmis/libraries/externalgps/providers/NMEADeviceManager;->lastMessage:Ljava/lang/String;

    return-void
.end method

.method public final setStatusChangedListsener(Llt/farmis/libraries/externalgps/providers/NMEADeviceManager$OnStatusChangeListener;)V
    .locals 0

    .line 25
    iput-object p1, p0, Llt/farmis/libraries/externalgps/providers/NMEADeviceManager;->statusChangedListsener:Llt/farmis/libraries/externalgps/providers/NMEADeviceManager$OnStatusChangeListener;

    return-void
.end method
